<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/content/mytags.jsp"%>
<!DOCTYPE html>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>密码修改</title>
		<t:resource types="jquery,lhgdialog,easyui" />
		<script type="text/javascript">
			$.extend($.fn.validatebox.defaults.rules, {
				equalTo : {
					validator : function(value, param) {
						return $(param[0]).val() == value;
					},
					message : '两次输入密码不匹配'
				}
			});
		</script>
	</head>
	<body>
		<ui:form name="update-user-pwd-form" action="user.do?saveNewPassword">
			<div class="form-group">
				<label class="label">原密码 :</label>
				<input id="oldPassword" type="password" name="oldPassword" value="" class="easyui-textbox" data-options="required:true,validType:['length[6,20]']" />
			</div>
			<div class="form-group">
				<label class="label">新密码 :</label>
				<input id="newPassword" type="password" name="newPassword" value="" class="easyui-textbox" data-options="required:true,validType:['length[6,20]']" />
			</div>
			<div class="form-group">
				<label class="label">重复密码 :</label>
				<input id="newPasswordAgain" type="password" name="newPasswordAgain" value="" class="easyui-textbox" validType="equalTo['#newPassword']" data-options="required:true" />
			</div>
		</ui:form>
	</body>
</html>